package DAO;

import Entities.DoeBookEntity;
import org.springframework.orm.hibernate5.support.HibernateDaoSupport;

public class BookDetailDao extends HibernateDaoSupport {
    DoeBookEntity doeBookEntity;

    public DoeBookEntity getBookByID(String book_id){

        doeBookEntity = (DoeBookEntity) this.getHibernateTemplate().find("from DoeBookEntity d where d.bookId = '"+book_id + "'").get(0);

        return doeBookEntity;
    }

}
